package com.xie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@TableName("salary")
@ApiModel(description = "员工")
public class Salary {
    @TableId(value = "salary_id",type = IdType.AUTO)
    @ApiModelProperty(value = "员工id")
    private Integer salaryId;
    @TableField("salary_no")
    @ApiModelProperty(value = "员工号")
    private String salaryNo;
    @TableField("salary_name")
    @ApiModelProperty(value = "员工名字")
    private String salaryName;
    @TableField("salary_money")
    @ApiModelProperty(value = "员工工资")
    private String salaryMoney;

    public Salary() {
    }

    public Salary(Integer salaryId, String salaryNo, String salaryName, String salaryMoney) {
        this.salaryId = salaryId;
        this.salaryNo = salaryNo;
        this.salaryName = salaryName;
        this.salaryMoney = salaryMoney;
    }

    public Integer getSalaryId() {
        return salaryId;
    }

    public void setSalaryId(Integer salaryId) {
        this.salaryId = salaryId;
    }

    public String getSalaryNo() {
        return salaryNo;
    }

    public void setSalaryNo(String salaryNo) {
        this.salaryNo = salaryNo;
    }

    public String getSalaryMoney() {
        return salaryMoney;
    }

    public void setSalaryMoney(String salaryMoney) {
        this.salaryMoney = salaryMoney;
    }

    public String getSalaryName() {
        return salaryName;
    }

    public void setSalaryName(String salaryName) {
        this.salaryName = salaryName;
    }

    @Override
    public String toString() {
        return "Salary{" +
                "salaryId=" + salaryId +
                ", salaryNo='" + salaryNo + '\'' +
                ", salaryName='" + salaryName + '\'' +
                ", salaryMoney='" + salaryMoney + '\'' +
                '}';
    }
}
